package com.suke.czx.modules.tb.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.suke.czx.modules.sys.entity.SysUser;
import com.suke.czx.modules.tb.entity.TbUserAddress;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
public class OrderVO implements Serializable {
    private String id;

    private BigDecimal totalAmount;

    private String status;

    private String statusText;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @JsonProperty(value = "createDate")
    public Date createDate;

    private ProductVO product;
    @JsonIgnore
    private String productInfoJson;

    private BuyerVO buyer;

    private SellerVO seller;

    @JsonIgnore
    private String shippingAddress;

    private TbUserAddress address;
}
